import request from '@/utils/request'
import loginRequest from '@/utils/isLoginRequest'

// 获取banner
export function getLessonByTeacherApi(data) {
	return loginRequest({
		url: `/info/api/cc/teacher/lessonlistByTeacher`,
		method: 'GET',
		params: data
	})
}
// 获取banner
export function followTeacherApi(data) {
	return loginRequest({
		url: `/info/api/web/user/addfollown/${data.teacherId}`,
		method: 'POST',
	})
}
export function delFollowTeacherApi(data) {
	return loginRequest({
		url: `/info/api/web/user/delfollown/${data.teacherId}`,
		method: 'POST',
	})
}
export function getHasFollowApi(data) {
	return loginRequest({
		url: `/info/api/web/user/teacherinfofollow/${data.teacherId}`,
		method: 'GET',
	})
}